# Maintainer: Felix Yan <felixonmars@archlinux.org>

pkgname=deepin-app-services
pkgver=1.0.24
pkgrel=1
pkgdesc='Service collection of DDE applications, including dconfig-center'
arch=('loong64' 'x86_64')
url="https://github.com/linuxdeepin/dde-app-services"
license=('GPL3')
depends=(qt5-base dtkcore dtkwidget)
makedepends=(cmake ninja doxygen gtest qt5-tools)
groups=(deepin)
source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/dde-app-services/archive/$pkgver.tar.gz")
sha512sums=('eab9924bd3a2088c89b94facc2d4ee92a3e4d3e4ba79601366197bd638c7d5a9aea771545fde0c0e0f2bf9a630a5a4d328ad1624f4c7dc91097f15026dbdae74')

build() {
  cd dde-app-services-$pkgver
  cmake -GNinja . -DCMAKE_INSTALL_PREFIX=/usr -DDVERSION=$pkgver
  ninja
}

package() {
  cd dde-app-services-$pkgver
  DESTDIR="$pkgdir" ninja install
}
